package com.java.array;

public class ArrayDemo {

    public static void main(String[] args){
        //定义数组
        int[] array = new int[7];
        System.out.println("定义了数组：" + array.length);
        System.out.println("默认值是：" + array[0]);
        //静态初始化
        int[] array1 = new int[]{1,2,5,6,22,10};
        System.out.println("第三个数据：" + array1[5]);
    }
}
